package com.umeng.kaoti5.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.example.mvplibrary.mvplibrary.adapter.BaseAdapter;
import com.example.mvplibrary.mvplibrary.adapter.BaseViewHolder;
import com.umeng.kaoti5.R;
import com.umeng.kaoti5.data.HighOpinion;

import java.util.List;

public class ThreeAdapter extends BaseAdapter<HighOpinion.ListBean> {

    public ThreeAdapter(List<HighOpinion.ListBean> datas, Context context, int layoutId) {
        super(datas, context, layoutId);
    }

    @Override
    protected void bindData(BaseViewHolder holder, HighOpinion.ListBean listBean, int position) {
        TextView tv_text = holder.getView(R.id.tv_textname);
        tv_text.setText(listBean.getAddress());
        ImageView iv_image1=holder.getView(R.id.iv_image1);
        Glide.with(context).load(listBean.getThumb()).into(iv_image1);
    }
}
